import taichi as ti

ti.init()

x = ti.Vector.field(3,dtype=ti.f32,shape=16)

@ti.kernel
def fill():
    for i in x:
        for j in ti.static(range(3)):
            x[i][j] = j
        print(x[i])

fill()